package com.sanchunhui.psc.utils.bleuitls.callback

/**
 * 描述:写操作回调接口
 */
interface OnWriteCallback {

    /**
     * 写入成功
     */
    fun onSuccess()

    /**
     * 写入失败
     *
     * @param state
     */
    fun onFailed(state: Int)

    companion object {

        /**
         * 蓝牙未开启
         */
        val FAILED_BLUETOOTH_DISABLE = 1
        /**
         * 服务无效
         */
        val FAILED_INVALID_SERVICE = 2
        /**
         * 特征无效
         */
        val FAILED_INVALID_CHARACTER = 3
        /**
         * 操作失败
         */
        val FAILED_OPERATION = 5
    }
}
